#!/bin/bash

install -m644 ./pkg/linux_amd64/sqlite3.a /usr/lib/go/pkg/linux_amd64/
install -m644 ./pkg/linux_amd64/libmkr.a /usr/lib/go/pkg/linux_amd64/

install -m755 ./bin/imgmkr /usr/bin/
install -m755 ./bin/rcsmkr /usr/bin/
install -m755 ./bin/pkgmkr /usr/bin/
install -m755 ./bin/sysmkr /usr/bin/

install -m755 ./bin/syscfg /usr/bin/

install -m755 ./script/clean-tildes.sh /usr/bin/clean-tildes
install -m755 ./script/lddcheck.sh /usr/bin/lddcheck

install -m755 ./script/infogrp.sh /usr/bin/infogrp
install -m755 ./script/infoown.sh /usr/bin/infoown
install -m755 ./script/infopkg.sh /usr/bin/infopkg
install -m755 ./script/infosrc.sh /usr/bin/infosrc

install -m755 ./script/listgrp.sh /usr/bin/listgrp
install -m755 ./script/listown.sh /usr/bin/listown
install -m755 ./script/listpkg.sh /usr/bin/listpkg
install -m755 ./script/listsrc.sh /usr/bin/listsrc

install -m755 ./script/freegrp.sh /usr/bin/freegrp
install -m755 ./script/freepkg.sh /usr/bin/freepkg

install -m755 ./script/syncgrp.sh /usr/bin/syncgrp
install -m755 ./script/syncpkg.sh /usr/bin/syncpkg

mkdir /etc
install -m644 ./conf/pkgmkr.cfg /etc/

mkdir /usr/share/sysmkr
install -m644 ./proto/proto.recipe /usr/share/sysmkr/
install -m644 ./proto/proto.system /usr/share/sysmkr/

